//
//  GHUtils.h
//  GodHorses
//
//  Created by Mac on 2017/11/14.
//  Copyright © 2017年 stoneobs@icloud.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TMCurrentColdModel.h"
#import "TMGProductModel.h"
@interface TMUtils: NSObject
//网络可用时候的回调

+ (UIView*)headerViewWithTitle:(NSString*)title;
+ (UIView*)headerViewWithTitle:(NSString*)title color:(UIColor*)coclor;
+ (UINavigationBar *)navigationBar;
+ (UITabBar *)tabbar;
+ (CGFloat)navgationBarBootom;
+ (CGFloat)tabBarTop;
//获取当前金价，从黄金数据获取
+ (NSString*)lastGoldMoney;
+ (void)fetchCurrentGoldPrice:(void(^)(TMCurrentColdModel * currentModel))handle;

//获取新手特权金
+ (void)fetchGreenHandGoldPrice:(void(^)(TMGProductModel * greenHandModel))handle;
//获取个人信息
+ (void)fetchPersonnalInfo:(void(^)(TMGUserModel * user))handle;
//正式url
+ (NSString*)releaseUrlWithUrl:(NSString*)url;
//去客服中心
+ (void)gotoCustomServiceViewController;
//去购买流动金
+ (void)gotoBuyFlowGold;
+ (void)gotoNewBuyFlowGold;
+ (void)gotoNewBuyFlowOrderGold;
//去购买零钱计划
+ (void)gotoBuyLingqianGold;
//去购买月月生息
+ (void)gotoBuyYueYueGold;
+ (void)fecthOnSaleRequestWithGoodTitle:(NSString*)goodTitle money:(NSString*)money handle:(void(^)(NSArray* array))handle;/**< 获取有是否可以使用的优惠券 */
@end
